<?php

namespace App\Http\Resources;

use App\Helpers\BaseResource;

class Tag extends BaseResource
{
    public function toArray($request)
    {
        return $this->filterFields([
            'id'=>hashid_encode($this->id),
            'name'=>$this->name
        ]);
    }
}
